/********************************************************************************
 * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
 * Faculty of Engineering, University of Southern Denmark
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ********************************************************************************/

#ifndef RWS_SCENEVIEWERWIDGET_HPP_
#define RWS_SCENEVIEWERWIDGET_HPP_

#ifdef __WIN32
#include <windows.h>
#endif

#include <rw/core/Ptr.hpp>
#include <rw/graphics/SceneGraph.hpp>
#include <rw/graphics/SceneViewer.hpp>

#include <QWidget>

namespace rws {
//! @brief Class representing a Qt widget for 3D visualization of a scene.
class SceneViewerWidget : public rw::graphics::SceneViewer
{
  public:
    //! @brief Smart pointer type for a SceneViewerWidget.
    typedef rw::core::Ptr< SceneViewerWidget > Ptr;

    /**
     * @brief Get rendering info for the scene.
     * @return the render info.
     */
    virtual rw::graphics::SceneGraph::RenderInfo& getRenderInfo () = 0;

    /**
     * @brief Get the drawable used for pivoting.
     * @return the drawable node.
     */
    virtual rw::graphics::DrawableNode::Ptr getPivotDrawable () = 0;

    /**
     * @brief Get the Qt widget for visualization of the scene.
     * @return the Qt widget.
     */
    virtual QWidget* getWidget () = 0;
};
}    // namespace rws

#endif    //#ifndef RWS_SCENEVIEWERWIDGET_HPP_
